package ${packageName};

import java.util.List;

public class ${prefix}${domain}${surffix} {
	private ${prefixDependency}${domain}${surffixDependency} ${domainVarName}${surffixDependency};
	
	public void set${prefixDependency}${domain}${surffixDependency}(${prefixDependency}${domain}${surffixDependency} ${domainVarName}${surffixDependency}) {
		this.${domainVarName}${surffixDependency} = ${domainVarName}${surffixDependency};
	}

	public int insert(${domain} ${domainVarName}) {
		return ${domainVarName}${surffixDependency}.insert(${domainVarName});
	}

	public void update(${domain} ${domainVarName}) {
		${domainVarName}${surffixDependency}.update(${domainVarName});
	}
	
	public void delete(<#list primaryKeyMappers as primaryKeyMapper>${primaryKeyMapper.fieldType} ${primaryKeyMapper.fieldName}<#if primaryKeyMapper_has_next>, </#if></#list>) {
		${domainVarName}${surffixDependency}.delete(<#list primaryKeyMappers as primaryKeyMapper>${primaryKeyMapper.fieldName}<#if primaryKeyMapper_has_next>, </#if></#list>);
	}
	
	public ${domain} select(<#list primaryKeyMappers as primaryKeyMapper>${primaryKeyMapper.fieldType} ${primaryKeyMapper.fieldName}<#if primaryKeyMapper_has_next>, </#if></#list>) {
		return ${domainVarName}${surffixDependency}.select(<#list primaryKeyMappers as primaryKeyMapper>${primaryKeyMapper.fieldName}<#if primaryKeyMapper_has_next>, </#if></#list>);
	}

	public List<${domain}> selectList(SearchCondition searchCondition) {
		return ${domainVarName}${surffixDependency}.selectList(searchCondition);
	}
}